x86/mm: Add p2m_lock in set_shared_p2m_entry
authorTim Deegan <Tim.Deegan@citrix.com>
Tue, 4 Jan 2011 11:32:20 +0000 (11:32 +0000)
committerTim Deegan <Tim.Deegan@citrix.com>
Tue, 4 Jan 2011 11:32:20 +0000 (11:32 +0000)
commitb211f07fd598688eb18a8f84211c0d88fc2e8413
tree1663c5b1be7efa9fdcfad42aeae4e6a09b90fb01
parentfa39212af9464cccb93f828f55d8f80ef6464d50
x86/mm: Add p2m_lock in set_shared_p2m_entry

This avoids the immediate problem (calling set_p2m_entry() without the
lock held) but leaves the underlying problem (no consistent locking
order between page-sharing and p2m code) for later.

Signed-off-by: Jui-Hao Chiang <juihaochiang@gmail.com>
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/mm/p2m.c